package org.intellij.lang.assembly.filetype;

import org.intellij.lang.assembly.AssemblyLanguage;
import com.intellij.openapi.fileTypes.LanguageFileType;
import com.intellij.openapi.util.IconLoader;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;

import javax.swing.*;

/**
 * @author weijiancai
 * @version 1.0
 */
public class AssemblyFileType extends LanguageFileType {
    public static final Icon FILE_ICON = IconLoader.findIcon("/images/assembly.png");
    public static final LanguageFileType FILE_TYPE = new AssemblyFileType();
    @NonNls public static final String DEFAULT_EXTENSION = "asm";

    public AssemblyFileType() {
        super(AssemblyLanguage.INSTANCE);
    }

    @NotNull
    public String getName() {
        return "Assembly";
    }

    @NotNull
    public String getDescription() {
        return "Assembly files";
    }

    @NotNull
    public String getDefaultExtension() {
        return DEFAULT_EXTENSION;
    }

    public Icon getIcon() {
        return FILE_ICON;
    }
}
